@import url(https://fonts.googleapis.com/css?family=Public+Sans:400,400i,700,700i);
@import url(https://fonts.googleapis.com/css?family=Merriweather:400,400i,500,700,700i);

body {
  padding-top: 60px;
  margin: auto;
  font-family: "Public Sans", Helvetica, sans-serif;
  margin-bottom: 50px;
  color: black !important;
  font-weight: 400;
}

hr {
  margin: 1rem auto;
  border: none;
  border-top: 1px solid black;
}

.intro {
  width: 60%;
  margin: auto;
}

.photo-section {
  margin: auto;
  width: 50%;
}

.section-header {
  font-size: 1.25rem;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.headline,
.headline a {
  font-size: 3.5rem;
  line-height: 0.9;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
  font-weight: 700;
  color: black;
  text-decoration: none;
}

.handle {
  font-size: 1.25rem;
  line-height: 0.75;
  margin-top: 1.75rem;
  font-weight: 400;
  color: black;
  text-decoration: none;
}

.handle:hover {
  text-decoration: underline;
}

.body-text {
  font-family: "Merriweather", Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.body-link {
  text-decoration: underline;
  color: black;
}

.subtitle {
  font-family: "Merriweather", Georgia, serif !important;
}

.filters {
  margin: auto;
}

.story-card {
  height: 100%;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}
.story-card:hover {
  transform: translateY(-5px);
}
.card-image figure {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img,
.card-image video {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}
.card-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}
.story-tags {
  margin-bottom: 1rem;
}
.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.story-title {
  margin-bottom: 1rem !important;
  min-height: 1rem;
  display: flex;
  align-items: flex-start;
}
.story-description {
  flex-grow: 1;
}
.tag-all {
  background-color: #0b2027ff;
  border: 2px solid #0b2027ff;
  color: white;
}

.tag-writing {
  background-color: #2d5a27;
  border: 2px solid #2d5a27;
  color: white;
}
.tag-interactive {
  background-color: #40798c;
  border: 2px solid #40798c;
  color: white;
}
.tag-mapping {
  background-color: #70a9a1;
  border: 2px solid #70a9a1;
  color: white;
}
.tag-data-analysis {
  background-color: #cfd7c7;
  border: 2px solid #cfd7c7;
  color: black;
}
.tag-graphics {
  background-color: #8b4a6b;
  border: 2px solid #8b4a6b;
  color: white;
}
.tag-web-development {
  background-color: #d4743b;
  border: 2px solid #d4743b;
  color: white;
}
.tag-d3 {
  background-color: #f6f1d1;
  border: 2px solid #f6f1d1;
  color: black;
}
.tag-data-engineering {
  background-color: #70a9a1;
  border: 2px solid #70a9a1;
  color: white;
}
.tag-python {
  background-color: #0b2027;
  border: 2px solid #0b2027;
  color: white;
}
.tag-backend {
  background-color: #6b4e71;
  border: 2px solid #6b4e71;
  color: white;
}
.tag-frontend {
  background-color: #a8b89a;
  border: 2px solid #a8b89a;
  color: white;
}
.tag-r {
  background-color: #f6f1d1;
  border: 2px solid #f6f1d1;
  color: black;
}
.tag-svelte {
  background-color: #70a9a1;
  border: 2px solid #70a9a1;
  color: white;
}

/* Filter button styling to match tags */
.filter-btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: white !important;
  color: #0b2027ff !important;
  border-color: 0b2027ff !important;
}

.story-card-container {
  transition: opacity 0.3s ease-in-out;
}

.story-card-container.hidden {
  display: none;
}

.photos-link {
  display: inline;
  color: black;
  text-decoration: none;
}

.photos-link:hover {
  text-decoration: underline;
}

@media (min-width: 320px) and (max-width: 999px) {
  body {
    margin-top: 30px;
    font-family: "Public Sans", Helvetica, sans-serif;
    margin-bottom: 50px;
  }

  .intro {
    margin: auto;
    width: 90%;
    font-family: "Public Sans", Helvetica, sans-serif;
  }

  .section-header {
    margin-block: 1rem;
  }

  .filters {
    width: 100%;
  }

  .control {
    font-size: medium !important;
  }
}
